<?php
//namespace BaseExt;
//use BaseExt\AliSMS\SmsDemo;
//use Symfony\Component\HttpFoundation\Request;


class Sms {

    private $key = 'LTAI6Hbxx2eJHKO8';
    private $sec = '4Mlt5BobNj7W4z74d49DyyZFiBnljQ';

    public function sendSms($phone,$tplCode = "SMS_174166578",$data)
    {

        require_once __DIR__."/AliSMS/SmsDemo.php";
        $Api = new SmsDemo($this->key,$this->sec);
        $Api->sendSms("聪明学",$tplCode,$phone,$data);
    }
}
